<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../css/bootstrap.min.css" />
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
    <script src="https://cdn.staticfile.org/axios/0.18.0/axios.min.js"></script>
    <script src="/js/auth.js"></script>
</head>
<body style="background-color: #f5f5f5">

<div id="app" style="background-color: white;width: 1000px;height: 650px;text-align: center;margin: auto;">
    <div style="margin: 10px;background-color: red">
        <span style="color: #00F7DE;font-size:30px ">档案信息</span>
    </div>
    <div>
        <table class="table table-striped">
            <tbody>
            <tr>
                <td>姓名：</td>
                <td>{{profile.uname}}</td>
            </tr>
            <tr>
                <td>电话：</td>
                <td>{{profile.mail}}</td>
            </tr>
            <tr>
                <td>邮箱：</td>
                <td>{{profile.phone}}</td>
            </tr>
            </tbody>
        </table>
    </div>

</div>
<script type="text/javascript">
    let p = {headers}
    new Vue({
        el:"#app",
        data:{
            profile:"",
            uid:1
        },
        mounted(){
            axios.get(
                "/profile/profile/find/"+this.uid,p
            ).then(res=>{
                console.info(res.data)
                this.profile=res.data.data;
            });
        }
    });
</script>
</body>
</html>